package cn.acac.yygh.hosp.service;

import cn.acac.yygh.model.hosp.Schedule;
import cn.acac.yygh.vo.hosp.ScheduleOrderVo;
import org.springframework.data.domain.Page;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface ScheduleService {
    void saveAndUpdate(Map<String, Object> switchMap);

    Page<Schedule> listPage(Map<String, Object> switchMap);

    void remove(Map<String, Object> switchMap);

    Map<String, Object> schedulePage(Integer pageNum, Integer pageSize, String hoscode, String depcode);

    List<Schedule> dateil(String hoscode, String depcode, String date);

    Map<String, Object> selectBookingSchedule(String hospcode, String deptcode, Integer pageNum, Integer pageSize);

    Schedule findScheduleById(String id);

    ScheduleOrderVo findScheduleOrderById(String scheduleId);

    boolean updateScheduleById(String scheduleId, Integer availableNumber);

    Boolean cancelSchedule(String scheduleId);
}
